package com.yidu.boss.sys.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 */
public class Seat implements Serializable {
    private String seatid;

    private String brokerid;

    private String seatname;

    private String brokername;

    private String dealSite;

    private String dealtype;

    private BigDecimal brokeragerate;

    private static final long serialVersionUID = 1L;

    public String getSeatid() {
        return seatid;
    }

    public void setSeatid(String seatid) {
        this.seatid = seatid;
    }

    public String getBrokerid() {
        return brokerid;
    }

    public void setBrokerid(String brokerid) {
        this.brokerid = brokerid;
    }

    public String getSeatname() {
        return seatname;
    }

    public void setSeatname(String seatname) {
        this.seatname = seatname;
    }

    public String getBrokername() {
        return brokername;
    }

    public void setBrokername(String brokername) {
        this.brokername = brokername;
    }

    public String getDealSite() {
        return dealSite;
    }

    public void setDealSite(String dealSite) {
        this.dealSite = dealSite;
    }

    public String getDealtype() {
        return dealtype;
    }

    public void setDealtype(String dealtype) {
        this.dealtype = dealtype;
    }

    public BigDecimal getBrokeragerate() {
        return brokeragerate;
    }

    public void setBrokeragerate(BigDecimal brokeragerate) {
        this.brokeragerate = brokeragerate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Seat other = (Seat) that;
        return (this.getSeatid() == null ? other.getSeatid() == null : this.getSeatid().equals(other.getSeatid()))
            && (this.getBrokerid() == null ? other.getBrokerid() == null : this.getBrokerid().equals(other.getBrokerid()))
            && (this.getSeatname() == null ? other.getSeatname() == null : this.getSeatname().equals(other.getSeatname()))
            && (this.getBrokername() == null ? other.getBrokername() == null : this.getBrokername().equals(other.getBrokername()))
            && (this.getDealSite() == null ? other.getDealSite() == null : this.getDealSite().equals(other.getDealSite()))
            && (this.getDealtype() == null ? other.getDealtype() == null : this.getDealtype().equals(other.getDealtype()))
            && (this.getBrokeragerate() == null ? other.getBrokeragerate() == null : this.getBrokeragerate().equals(other.getBrokeragerate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSeatid() == null) ? 0 : getSeatid().hashCode());
        result = prime * result + ((getBrokerid() == null) ? 0 : getBrokerid().hashCode());
        result = prime * result + ((getSeatname() == null) ? 0 : getSeatname().hashCode());
        result = prime * result + ((getBrokername() == null) ? 0 : getBrokername().hashCode());
        result = prime * result + ((getDealSite() == null) ? 0 : getDealSite().hashCode());
        result = prime * result + ((getDealtype() == null) ? 0 : getDealtype().hashCode());
        result = prime * result + ((getBrokeragerate() == null) ? 0 : getBrokeragerate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", seatid=").append(seatid);
        sb.append(", brokerid=").append(brokerid);
        sb.append(", seatname=").append(seatname);
        sb.append(", brokername=").append(brokername);
        sb.append(", dealSite=").append(dealSite);
        sb.append(", dealtype=").append(dealtype);
        sb.append(", brokeragerate=").append(brokeragerate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}